#!/usr/bin/env python3

import pathlib

d2s = lambda d: '0%d' % d if d<10 else '%d' % d

def to_s(*d):
    return ''.join(map(d2s, d))


f = 'dates2.txt'
with open(f, 'w') as fo:
    for yy in range(10, 20):
        y = '20' + to_s(yy)
        for m in range(1, 13):
            if m in {1,3,5,7,8,10,12}:
                for d in range(1, 32):
                    fo.write(y+to_s(m, d)+'\n')
            elif m in {4, 6, 9, 11}:
                for d in range(1, 31):
                    fo.write(y+to_s(m, d)+'\n')
            else:
                for d in range(1, 30):
                    fo.write(y+to_s(m, d)+'\n')

# with open('d.txt') as fo:
#     s = fo.read()
#     print(s)
